#include <bits/stdc++.h>

using namespace std;

const int N = 5e2 + 10;
int r,c;
char mp[N][N];
int v;

int main()
{
    cin >> r >> c;
    for(int i = 1; i<= r; i++)for(int j = 1; j <= c;j++)cin >> mp[i][j];
    cin >> v;
   
   return 0;
}
